arm: spl: For Falcon Mode, set a default machid of ~0
authorTom Rini <[email protected]>
Fri, 9 Aug 2013 15:22:15 +0000 (11:22 -0400)
committerTom Rini <[email protected]>
Thu, 15 Aug 2013 22:38:35 +0000 (18:38 -0400)
commitec101fdb8d419975c7722c1d23470d9674350c3c
treeb39ba93a3255302d8a8c0bfcbe41fdd32f755205
parent4db4076206d643065c6cd5b87a7b014e15ff17e0
arm: spl: For Falcon Mode, set a default machid of ~0

With device trees, boards do not always set CONFIG_MACH_TYPE now, so we
must not rely on this define being set.  The kernel uses ~0 to see if we
have a valid machine number or not, so set that as the default, invalid
machine, id and only fix if CONFIG_MACH_TYPE is set.

Acked-by: Dan Murphy <[email protected]>
Tested-by: Heiko Schocher <[email protected]>
Cc: Albert ARIBAUD <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
arch/arm/lib/spl.c